package com.note7_9;

import java.beans.MethodDescriptor;
import java.lang.reflect.Method;
import java.util.Calendar;

public class Question1 {

	//调用Calendar的getInstance方法，获得Calendar对象(反射调用)
	
	public static void main(String[] args) throws Exception {
		Class c = Calendar.class;
		Method m = c.getDeclaredMethod("getInstance",null);
		Calendar cld = (Calendar) m.invoke(null, null);
		Class[] ci = c.getInterfaces();
		for(Class c0:ci){
			System.out.println(c0);
		}
	}
}
